package org.test;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;

public class BuySell8Activity extends TabActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		requestWindowFeature(Window.FEATURE_NO_TITLE);

		/**
		 * Retrieve the container for a tabbed window view. This object holds
		 * two children: a set of tab labels that the user clicks to select a
		 * specific tab, and a FrameLayout object that displays the contents of
		 * that page.
		 */
		TabHost host = getTabHost();
		/**
		 * The resource object is used to load system icons to be used in this
		 * TabBar.
		 */
		Resources r = getResources();

		
		 host.addTab(host.newTabSpec("Map").setIndicator("Sell",
				r.getDrawable(R.drawable.icon)).setContent(
				new Intent(this, SellBooksActivity.class)
						.putExtra("TAB", "Map")));
		host.addTab(host.newTabSpec("Map").setIndicator("Buy",
				r.getDrawable(R.drawable.icon)).setContent(
				new Intent(this, DisplayCourseNumberPresentActivity.class)
						.putExtra("TAB", "Map")));
	}
}